package com.java.domain;

import java.io.Serializable;

public class Goods implements Serializable {
    private int gid;
    private String gName;
    private String gImg;
    private double gPrice;
    private int num;
    private String type;
    private String gDetails;
    private String gColour;

    public Goods() {
    }

    public Goods(int gid, String gName, String gImg, double gPrice, int num, String type, String gDetails, String gColour) {
        this.gid = gid;
        this.gName = gName;
        this.gImg = gImg;
        this.gPrice = gPrice;
        this.num = num;
        this.type = type;
        this.gDetails = gDetails;
        this.gColour = gColour;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "gid=" + gid +
                ", gName='" + gName + '\'' +
                ", gImg='" + gImg + '\'' +
                ", gPrice=" + gPrice +
                ", num=" + num +
                ", type='" + type + '\'' +
                ", gDetails='" + gDetails + '\'' +
                ", gColour='" + gColour + '\'' +
                '}';
    }

    public int getGid() {
        return gid;
    }

    public void setGid(int gid) {
        this.gid = gid;
    }

    public String getgName() {
        return gName;
    }

    public void setgName(String gName) {
        this.gName = gName;
    }

    public String getgImg() {
        return gImg;
    }

    public void setgImg(String gImg) {
        this.gImg = gImg;
    }

    public double getgPrice() {
        return gPrice;
    }

    public void setgPrice(double gPrice) {
        this.gPrice = gPrice;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getgDetails() {
        return gDetails;
    }

    public void setgDetails(String gDetails) {
        this.gDetails = gDetails;
    }

    public String getgColour() {
        return gColour;
    }

    public void setgColour(String gColour) {
        this.gColour = gColour;
    }
}
